package de.jmda.mproc.swingui;

import java.io.File;

import javax.swing.filechooser.FileFilter;

import de.jmda.util.fileset.FileFilterBase;

/**
 *
 */
public class FileFilterWrapper
    extends FileFilter
{
	private FileFilterBase fileFilter;
	
	public FileFilterWrapper(FileFilterBase fileFilter)
  {
	  super();
	  this.fileFilter = fileFilter;
  }

	@Override
	public boolean accept(File f)
	{
		return fileFilter.accept(f);
	}

	@Override
	public String getDescription()
	{
		return fileFilter.getDescription();
	}
}